import Vue from 'vue'
import {mapMutations} from 'vuex'

Vue.mixin({
  data(){
    return {
      domain: 'https://img.fireleaves.cn/'
    }
  },
  methods: {
    ...mapMutations(['changeVersion']),
    // 标题，描述，关键词
    $seo(title, content, keywords) {
      return {
        title,
        meta: [{
          hid: 'description',
          name: 'description',
          content
        },{
          hid: 'keywords',
          name: 'keywords',
          keywords
        }]
      }
    }
  }
})
